package kr.saeildamil.androidstudy_second20;

import kr.saeildamil.androidstudy_second20.common.WordListFragment;
import android.app.Activity;
import android.app.FragmentManager;
import android.os.Bundle;

public class ListFragmentTest extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		FragmentManager fm = getFragmentManager();
		
		if (fm.findFragmentById(android.R.id.content)==null){
			WordListFragment wordlist = new WordListFragment();
			fm.beginTransaction().add(android.R.id.content,wordlist).commit();
		}
	}
}
